package com.dy.design_pattern_study.command_pattern.dome2;

/**
 * @CreateBy zhangdingyi
 * @Date 2023-04-19
 * @Content 抽象命令
 */
public abstract class Command {

    protected Barbecuer receiver;

    public Command(Barbecuer receiver) {
        //仅需要确定烤肉串是哪个具体的实例
        this.receiver = receiver;
    }

    abstract public void excuteCommand();
}
